﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ABCTile.Models
{
    public class Tile
    {
        [Display(Name = "Tile ID")]
        public Int32 TileID { get; set; }

        [Required(ErrorMessage = "Series is required")]
        public string Series { get; set; }

        [Required(ErrorMessage = "Size X is required")]
        [Range(0, 10, ErrorMessage = "SizeX must be between 0 and 10.")]
        public int SizeX { get; set; }

        [Required(ErrorMessage = "Size Y is required")]
        [Range(0, 10, ErrorMessage = "SizeY must be between 0 and 10.")]
        public int SizeY { get; set; }

        public string Description { get; set; }

        [Required(ErrorMessage = "Color is required")]
        public string ColorID { get; set; }
        public virtual Color Color { get; set; }

        [Required(ErrorMessage = "Shape is required")]
        public int ShapeID { get; set; }
        public virtual Shape Shape { get; set; }

        [Required(ErrorMessage = "Shape is required")]
        public Int32 ManufactureID { get; set; }
        public virtual Manufacture Mannufacture { get; set; }


    }
}